﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfDjackInfo.aspx.cs" Inherits="msBsc.WebUi.wMall.Public.wfDjackInfo" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="keywords" content="地接客，旅游，旅游包车" />
    <title>地接客个人详情，包车旅游专家，旅游因您而定</title>
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Public/sDjackInfo.css" rel="stylesheet" />
</head>
<body>
    <div class="wf_all">
        <input type="hidden" id="djackId" />
        <div id="divLoginInfo">
            <%=msBsc.WebUi.Code.QtHtmlGet.GetHeaderLoginInfo() %>
        </div>
        <div id="container">
            <div id="main-content">
                <div class="contentInfo">
                    <div class="title">
                        <input type="hidden" id="djackNameId" />
                        <div class="row-fluid">
                            <div class="headPortrait">
                                <img id="headImg" />
                            </div>
                            <div class="userCoent">
                                <div class="row-fluid" id="userInfo">
                                    <a class="userName" href="/PageShow/DjackInfo" id="djackName"></a>
                                    <img id="sex" class="sex" />
                                </div>
                                <div class="row-fluid">
                                    <div class="region" id="area">
                                    </div>
                                </div>
                                <div class="row-fluid">
                                    <div class="userInfo" id="userIntroduction">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row-fluid menuInfo">
                            <a id="djackVehicle" class="checkMenu" href="#" style="margin-right: 13px;">旅游包车</a>
                            <a id="djackRecomm" class="checkMenu" href="#" style="margin-right: 13px;">旅游推介</a>
                            <a class="menu">个人中心</a>
                        </div>
                        <div class="row-fluid djackInfoCount">
                            <div class="row-fluid">
                                <div class="titleInfo">基本信息</div>
                                <div class="editHr">
                                    <span class="edit" id="editBasicInfo"></span>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">昵称</div>
                                <div class="span11 titleCoent" id="userName"></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">所在地</div>
                                <div class="span11 titleCoent" id="location"><span id="country" data-value="DF6723BE-A25C-4F77-BB49-A1662D3E6F2A">中国</span><span id="province" data-value=""></span><span id="city" data-value=""></span></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">好人缘</div>
                                <div class="span11 titleCoent" id="Div1">
                                    <div id="star">
                                        <ul id="star0" class="star" title="">
                                            <li id="starCur0" class="curr" title="0" style="width: 0px;"></li>
                                        </ul>
                                        <div style="color: rgb(136, 136, 136);" id="starUser0" class="user"></div>
                                    </div>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">性别</div>
                                <div class="span11 titleCoent" id="Sex"><span data-value="F"></span></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">简介</div>
                                <div class="span11 titleCoent" id="briefIntrodu"></div>
                            </div>
                        </div>
                        <div class="row-fluid djackInfoCount">
                            <div class="row-fluid">
                                <div class="span1 titleInfo">联系方式</div>
                                <div class="span11 editHr">
                                    <span class="edit" id="editContanc"></span>
                                </div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">QQ</div>
                                <div class="span11 titleCoent" id="txtQQ"></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">电话</div>
                                <div class="span11 titleCoent" id="txtPhone"></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">微信</div>
                                <div class="span11 titleCoent" id="txtMicro"></div>
                            </div>
                            <div class="row-fluid">
                                <div class="span1 titleName">邮箱</div>
                                <div class="span11 titleCoent" id="txtEmail"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
    <!--start JS引用-->
    <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
    <script src="/jqPlugin/js/jBase.js"></script>
    <script src="/jqPlugin/js/jBPage.js"></script>
    <script src="/jqPlugin/js/laytpl.js"></script>
    <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
    <!--end JS引用-->
    <script type="text/ecmascript">
        (function () {
            var djackId=GetQueryStr('djackId');
            $("#djackId").val(djackId);
            $("#djackVehicle").attr("href", "/wp_DjackVehicle.htm?djackId=" + djackId);
            $("#djackRecomm").attr("href", "/wp_DjackRecommend.htm?djackId=" + djackId);
        })()

        function btnDo(sEbtn) {
            GtGrid1Action = sEbtn;
            var opart = GetGtParam();
            ajaxComm(opart);
        };

        //执行AJAX调用时获取参数
        function GetGtParam() {
            var _jsParam = new jsonRow();
            _jsParam = addNoAreStatistics(_jsParam, "地接客详情", "m0017");
            _jsParam.AddCell("djackId", $("#djackId").val());
            _jsParam.AddCell("ACTION", GtGrid1Action);
            return _jsParam;
        };

        btnDo("init");

        function setDjackInfo(data)
        {
            $("#headImg").attr("src", data.rows[0].CUSTOMER_DEFAULT_PIC + " 197x197img.jpg");
            $("#djackName").text(data.rows[0].CUSTOMER_NICK);
            if (data.rows[0].CUSTOMER_BASEINFO_GENDER == "M" || data.rows[0].CUSTOMER_BASEINFO_GENDER == "F") {
                var SexSrc = data.rows[0].CUSTOMER_BASEINFO_GENDER == "M" ? "/themes/wStyle1/Images/Public/man.png" : "/themes/wStyle1/Images/Public/woman.png";
                $("#sex").attr("src", SexSrc);
            }
            $("#userIntroduction").text(data.rows[0].CUSTOMER_BASEINFO_INTRO);
            $("#area").text(data.rows[0].P_COUNTRY_NAME + " | " + data.rows[0].P_CITY_NAME + " | " + data.rows[0].P_DISTINATION_NAME);
            var lable = data.rows[0].SERVICE_LABEL;
            var arrLable = lable.split("|");
            $("#userInfo .lable").remove();
            if (!IsNull(arrLable)) {
                arrLable.sort();
                for (var i = 0; i < arrLable.length; i++) {
                    if (arrLable[i] == "1") {
                        $("#userInfo").append("<img class='lable' src='/themes/wStyle1/Images/Public/careful.png' />");
                    } else if (arrLable[i] == "2") {
                        $("#userInfo").append("<img class='lable' src='/themes/wStyle1/Images/Public/drawUp.png' />");
                    } else if (arrLable[i] == "3") {
                        $("#userInfo").append("<img class='lable' src='/themes/wStyle1/Images/Public/rouristGuide.png' />");
                    } else if(arrLable[i] == "4") {
                        $("#userInfo").append("<img class='lable' src='/themes/wStyle1/Images/Public/Guide.png' />");
                    }
                }
            }
            $("#userName").text(data.rows[0].CUSTOMER_NICK);
            $("#country").text(data.rows[0].COUNTRYNAME);
            $("#province").text(data.rows[0].CITYNAME);
            $("#city").text(data.rows[0].DISTINANAME);
            if (data.rows[0].CUSTOMER_BASEINFO_GENDER == "M") {
                $("#Sex span").text("男");
            } else if (data.rows[0].CUSTOMER_BASEINFO_GENDER == "F") {
                $("#Sex span").text("女");
            }
            $("#briefIntrodu").text(data.rows[0].CUSTOMER_BASEINFO_INTRO);
            $("#txtQQ").text(data.rows[0].CUSTOMER_BASEINFO_QQ);
            $("#txtPhone").text(data.rows[0].CUSTOMER_BASEINFO_MOBILE);
            $("#txtMicro").text(data.rows[0].CUSTOMER_WECHAT_NO);
            $("#txtEmail").text(data.rows[0].CUSTOMER_BASEINFO_EMAIL);
            $("#starCur0").width(Math.round(data.rows[0].GOOD_KARMA * 85 * 2 / 100));
            $("#starUser0").text(data.rows[0].GOOD_KARMA + " 人");
        }

    </script>
</body>
</html>
